package com.jinghua.treatment.service.impl;

import com.jinghua.treatment.entity.SysWechatAccount;
import com.jinghua.treatment.mapper.SysWechatAccountMapper;
import com.jinghua.treatment.service.SysWechatAccountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysWechatAccountServiceImpl implements SysWechatAccountService {

    @Resource
    SysWechatAccountMapper sysWechatAccountMapper ;

    @Override
    public SysWechatAccount findByExample(SysWechatAccount sysWechatAccount) {
       List<SysWechatAccount> sysWechatAccountList = sysWechatAccountMapper.selectByExample(sysWechatAccount);
       return sysWechatAccountList==null?null:sysWechatAccountList.get(0);
    }
}
